import request from '@/utils/request'
// 城市列表
export function cityList () {
  return request({
    method: 'get',
    url: 'area/city',
    params: {
      level: 1
    }
  })
}

// 热门城市
export function cityHot () {
  return request({
    method: 'get',
    url: 'area/hot'
  })
}

// 查询房源数据
export function getFangyuan (name) {
  return request({
    method: 'get',
    url: 'area/info',
    params: { name }
  })
}

// 区域
export function cityArea (id) {
  return request({
    method: 'get',
    url: '/houses/condition',
    params: {
      id
    }
  })
}
